package com.think.admin.model.param.role;

import com.think.common.convert.Convert;
import com.think.common.enums.StateEnum;
import com.think.common.model.BaseModel;
import com.think.common.validation.Create;
import com.think.common.validation.Update;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.util.List;

/**
 * <p>
 * 设置角色菜单
 * </p>
 *
 * @author: xwj
 * @data: 2019-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SetRoleResourceParam extends Convert {

    private static final long serialVersionUID = 1L;

    @NotNull(groups = {Update.class}, message = "角色ID列表不能为空")
    private List<String> roleIdList;

    private List<String> resourceIdList;
}
